package io.nutz.nutzsite.module.exam.models;

import io.nutz.nutzsite.common.base.BaseModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import org.nutz.dao.entity.annotation.*;
import java.io.Serializable;
					import java.util.Date;
		
/**
 * 错题本表 exam_errhistory
 * 
 * @author lrw
 * @date 2020-04-08
 */
@Table("exam_errhistory")
public class Errhistory extends BaseModel implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Id
		@Column("qid")
	@Comment("题号")
	@ColDefine(type = ColType.VARCHAR, width = 64)
	private Integer qid;

		/** 题型 */
	@Column("qtid")
	@Comment("题型")
	private Integer qtid;

		/** 用户 */
	@Column("uid")
	@Comment("用户")
	private String uid;

		/** 是否正确 */
	@Column("is_right")
	@Comment("是否正确")
	private Integer isRight;

		/** 入库时间 */
	@Column("create_time")
	@Comment("入库时间")
	private Date createTime;

		/** 错题库出库条件 */
	@Column("right_conut")
	@Comment("错题库出库条件")
	private Integer rightConut;

	
	public void setQid(Integer qid) 
	{
		this.qid = qid;
	}

	public Integer getQid() 
	{
		return qid;
	}

	public void setQtid(Integer qtid) 
	{
		this.qtid = qtid;
	}

	public Integer getQtid() 
	{
		return qtid;
	}

	public void setUid(String uid) 
	{
		this.uid = uid;
	}

	public String getUid() 
	{
		return uid;
	}

	public void setIsRight(Integer isRight) 
	{
		this.isRight = isRight;
	}

	public Integer getIsRight() 
	{
		return isRight;
	}

	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}

	public void setRightConut(Integer rightConut) 
	{
		this.rightConut = rightConut;
	}

	public Integer getRightConut() 
	{
		return rightConut;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("qid", getQid())
            .append("qtid", getQtid())
            .append("uid", getUid())
            .append("isRight", getIsRight())
            .append("createTime", getCreateTime())
            .append("rightConut", getRightConut())
            .toString();
    }
}
